package com.redside.dao.spring;

import org.apache.log4j.Logger;
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcDaoSupport;

import com.redside.model.list.SQLCacheBean;

/**
 * @author ChapmanPx
 *
 */

public class BaseDaoSpring extends NamedParameterJdbcDaoSupport
{
	protected Logger logger = Logger.getLogger(getClass());
	
	private SQLCacheBean sqlCache;
	
	public void setSqlBean(SQLCacheBean sqlCache)
	{
		this.sqlCache=sqlCache;
	}
	public String getSQL(String key)
	{
		return sqlCache.getSQL(key);
	}
}